The phrase "to serve the cake" means to cut and distribute pieces of cake to everyone, so they can enjoy and eat it.